﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" x:Class="QBRatingSL.MainPage"
    mc:Ignorable="d" Height="550" Width="670">

    <Grid x:Name="LayoutRoot" Background="White" Margin="0,0,0,0">
        <Grid Margin="157,83,507,444">
            <sdk:Label HorizontalAlignment="Right" Height="23" VerticalAlignment="Center" Width="85" Content="Completions" Margin="-153,-9,74,9"/>
            <TextBox x:Name="ctlCompletions" HorizontalAlignment="Left" TextWrapping="Wrap" Width="50" Margin="-52,-9,0,9" KeyDown="ctlCompletions_KeyDown" TextAlignment="Center"/>
            <sdk:Label HorizontalAlignment="Right" Height="23" VerticalAlignment="Center" Width="85" Content="Attempts" Margin="-153,16,74,-16"/>
            <TextBox x:Name="ctlAttempts" HorizontalAlignment="Left" Height="23" TextWrapping="Wrap" VerticalAlignment="Top" Width="50" Margin="-52,16,0,-16" KeyDown="ctlAttempts_KeyDown" TextAlignment="Center"/>
            <sdk:Label HorizontalAlignment="Right" Height="23" VerticalAlignment="Center" Width="85" Content="Passing Yards" Margin="-153,41,74,-41"/>
            <TextBox x:Name="ctlYards" HorizontalAlignment="Left" Height="23" TextWrapping="Wrap" VerticalAlignment="Top" Width="50" Margin="-52,41,0,-41" KeyDown="ctlYards_KeyDown" TextAlignment="Center"/>
            <sdk:Label HorizontalAlignment="Right" Height="23" VerticalAlignment="Center" Width="85" Content="Passing TDs" Margin="-153,66,74,-66"/>
            <TextBox x:Name="ctlTds" HorizontalAlignment="Left" Height="23" TextWrapping="Wrap" VerticalAlignment="Top" Width="50" Margin="-52,66,0,-66" KeyDown="ctlTds_KeyDown" TextAlignment="Center"/>
            <sdk:Label HorizontalAlignment="Right" Height="23" VerticalAlignment="Center" Width="85" Content="Interceptions" Margin="-153,91,74,-91"/>
            <TextBox x:Name="ctlInts" HorizontalAlignment="Left" Height="23" TextWrapping="Wrap" VerticalAlignment="Top" Width="50" Margin="-52,91,0,-91" KeyDown="ctlInts_KeyDown" TextAlignment="Center"/>
            <sdk:Label HorizontalAlignment="Right" Height="23" VerticalAlignment="Center" Width="85" Content="NCAA Rating" Margin="-153,130,74,-130"/>
            <TextBox x:Name="ctlNcaaRating" HorizontalAlignment="Left" Height="23" TextWrapping="Wrap" VerticalAlignment="Top" Width="50" Margin="-52,130,0,-130" IsReadOnly="True" TextAlignment="Center" FontWeight="Bold"/>
            <sdk:Label HorizontalAlignment="Right" Height="23" VerticalAlignment="Center" Width="85" Content="NFL Rating" Margin="-153,155,74,-155"/>
            <TextBox x:Name="ctlNflRating" HorizontalAlignment="Left" Height="23" TextWrapping="Wrap" VerticalAlignment="Top" Width="50" Margin="-52,155,0,-155" IsReadOnly="True" TextAlignment="Center" FontWeight="Bold"/>

        </Grid>
        <Grid Margin="0,73,9,0" Background="#FF4F81BD" HorizontalAlignment="Right" Width="483" Height="33" VerticalAlignment="Top">
            <sdk:Label HorizontalAlignment="Left" Height="28" Margin="8,3,0,2" VerticalAlignment="Center" Width="120" Content="NFL Formula" Foreground="White" FontSize="14" FontWeight="Bold"/>
        </Grid>
        <Grid Margin="184,111,48,411">
            <sdk:Label Height="28" Width="120" Margin="0,0,318,0" HorizontalAlignment="Right" Content="( Completion %"/>
            <TextBox x:Name="ctlCp" HorizontalAlignment="Left" Height="23" Margin="137,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" KeyDown="ctlCp_KeyDown" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center"/>
            <sdk:Label Height="28" Width="82" Margin="188,0,168,0" HorizontalAlignment="Center" Content="- 30 ) * 0.05" VerticalAlignment="Center"/>
            <sdk:Label Height="28" Width="16" Margin="270,0,152,0" HorizontalAlignment="Center" Content="=" VerticalAlignment="Center"/>
            <TextBox x:Name="ctlCpCalc" HorizontalAlignment="Left" Height="23" Margin="292,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" KeyDown="ctlCpCalc_KeyDown" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center"/>
            <sdk:Label Height="28" Width="16" Margin="345,0,77,0" HorizontalAlignment="Center" Content="(" VerticalAlignment="Center"/>
            <TextBox x:Name="ctlCpAct" HorizontalAlignment="Left" Height="23" Margin="361,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" KeyDown="ctlCpAct_KeyDown" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center"/>
            <sdk:Label Height="28" Width="28" Margin="410,0,0,0" HorizontalAlignment="Center" Content=")  A" VerticalAlignment="Center"/>
        </Grid>
        <Grid Margin="184,137,48,385">
            <sdk:Label Height="28" Width="120" Margin="0,0,318,0" HorizontalAlignment="Right" Content="( Yards / Attempt"/>
            <TextBox x:Name="ctlYa" HorizontalAlignment="Left" Height="23" Margin="137,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" KeyDown="ctlYa_KeyDown" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center"/>
            <sdk:Label Height="28" Width="82" Margin="188,0,168,0" HorizontalAlignment="Center" Content="- 3 ) * 0.25" VerticalAlignment="Center"/>
            <sdk:Label Height="28" Width="16" Margin="270,0,152,0" HorizontalAlignment="Center" Content="=" VerticalAlignment="Center"/>
            <TextBox x:Name="ctlYaCalc" HorizontalAlignment="Left" Height="23" Margin="292,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" KeyDown="ctlYaCalc_KeyDown" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center"/>
            <sdk:Label Height="28" Width="16" Margin="345,0,77,0" HorizontalAlignment="Center" Content="(" VerticalAlignment="Center"/>
            <TextBox x:Name="ctlYaAct" HorizontalAlignment="Left" Height="23" Margin="361,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" KeyDown="ctlYaAct_KeyDown" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center"/>
            <sdk:Label Height="28" Width="28" Margin="410,0,0,0" HorizontalAlignment="Center" Content=")  B" VerticalAlignment="Center"/>
        </Grid>
        <Grid Margin="184,163,48,359">
            <sdk:Label Height="28" Width="120" Margin="0,0,318,0" HorizontalAlignment="Right" Content="Touchdown %"/>
            <TextBox x:Name="ctlTp" HorizontalAlignment="Left" Height="23" Margin="137,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" KeyDown="ctlTp_KeyDown" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center"/>
            <sdk:Label Height="28" Width="82" Margin="188,0,168,0" HorizontalAlignment="Center" Content="* 0.2" VerticalAlignment="Center"/>
            <sdk:Label Height="28" Width="16" Margin="270,0,152,0" HorizontalAlignment="Center" Content="=" VerticalAlignment="Center"/>
            <TextBox x:Name="ctlTpCalc" HorizontalAlignment="Left" Height="23" Margin="292,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" KeyDown="ctlTpCalc_KeyDown" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center"/>
            <sdk:Label Height="28" Width="16" Margin="345,0,77,0" HorizontalAlignment="Center" Content="(" VerticalAlignment="Center"/>
            <TextBox x:Name="ctlTpAct" HorizontalAlignment="Left" Height="23" Margin="361,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" KeyDown="ctlTpAct_KeyDown" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center"/>
            <sdk:Label Height="28" Width="28" Margin="410,0,0,0" HorizontalAlignment="Center" Content=")  C" VerticalAlignment="Center"/>
        </Grid>
        <Grid Margin="184,189,48,333">
            <sdk:Label Height="28" Width="120" Margin="0,0,318,0" HorizontalAlignment="Right" Content="2.375 - ( Interception %"/>
            <TextBox x:Name="ctlIp" HorizontalAlignment="Left" Height="23" Margin="137,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" KeyDown="ctlIp_KeyDown" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center"/>
            <sdk:Label Height="28" Width="82" Margin="188,0,168,0" HorizontalAlignment="Center" Content="* 0.25 )" VerticalAlignment="Center"/>
            <sdk:Label Height="28" Width="16" Margin="270,0,152,0" HorizontalAlignment="Center" Content="=" VerticalAlignment="Center"/>
            <TextBox x:Name="ctlIpCalc" HorizontalAlignment="Left" Height="23" Margin="292,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" KeyDown="ctlIpCalc_KeyDown" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center"/>
            <sdk:Label Height="28" Width="16" Margin="345,0,77,0" HorizontalAlignment="Center" Content="(" VerticalAlignment="Center"/>
            <TextBox x:Name="ctlIpAct" HorizontalAlignment="Left" Height="23" Margin="361,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" KeyDown="ctlIpAct_KeyDown" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center"/>
            <sdk:Label Height="28" Width="28" Margin="410,0,0,0" HorizontalAlignment="Center" Content=")  D" VerticalAlignment="Center"/>
        </Grid>
        <Grid Margin="184,234,24,265">
            <sdk:Label Height="28" Width="10" Margin="0,0,452,23" HorizontalAlignment="Right" Content="("/>
            <TextBox x:Name="ctlCpFinal" HorizontalAlignment="Left" Height="23" Margin="14,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" KeyDown="ctlCpFinal_KeyDown" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center"/>
            <sdk:Label Height="28" Width="10" Margin="66,0,386,23" HorizontalAlignment="Center" Content="+" VerticalAlignment="Center"/>
            <TextBox x:Name="ctlYaFinal" HorizontalAlignment="Left" Height="23" Margin="79,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" KeyDown="ctlYaFinal_KeyDown" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center"/>
            <sdk:Label Height="28" Width="10" Margin="131,0,321,23" HorizontalAlignment="Center" Content="+" VerticalAlignment="Center"/>
            <TextBox x:Name="ctlTpFinal" HorizontalAlignment="Left" Height="23" Margin="145,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" KeyDown="ctlTpFinal_KeyDown" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center"/>
            <sdk:Label Height="28" Width="10" Margin="197,0,255,23" HorizontalAlignment="Center" Content="+" VerticalAlignment="Center"/>
            <TextBox x:Name="ctlIpFinal" HorizontalAlignment="Left" Height="23" Margin="212,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" KeyDown="ctlIpFinal_KeyDown" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center"/>
            <sdk:Label Height="28" Width="46" Margin="260,0,156,23" HorizontalAlignment="Center" Content=") / 6 =" VerticalAlignment="Center"/>
            <TextBox x:Name="ctlRawFinal" HorizontalAlignment="Left" Height="23" Margin="309,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" KeyDown="ctlRawFinal_KeyDown" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center"/>
            <sdk:Label Height="28" Width="46" Margin="361,0,55,23" HorizontalAlignment="Center" Content="* 100 =" VerticalAlignment="Center"/>
            <TextBox x:Name="ctlNflFinal" HorizontalAlignment="Left" Height="23" Margin="414,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" IsReadOnly="True" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center" FontWeight="Bold"/>
            <sdk:Label Height="28" Width="46" Margin="15,23,401,0" HorizontalAlignment="Center" Content="A" VerticalAlignment="Center"/>
            <sdk:Label Height="28" Width="45" Margin="81,23,336,0" HorizontalAlignment="Center" Content="B" VerticalAlignment="Center"/>
            <sdk:Label Height="28" Width="46" Margin="146,23,270,0" HorizontalAlignment="Center" Content="C" VerticalAlignment="Center"/>
            <sdk:Label Height="28" Width="48" Margin="212,23,202,0" HorizontalAlignment="Center" Content="D" VerticalAlignment="Center"/>
            <sdk:Label Height="28" Width="46" Margin="416,23,0,0" HorizontalAlignment="Center" Content="NFL" VerticalAlignment="Center"/>
        </Grid>
        <Grid Margin="0,302,9,0" Background="#FF4F81BD" HorizontalAlignment="Right" Width="483" Height="33" VerticalAlignment="Top">
            <sdk:Label HorizontalAlignment="Left" Height="28" Margin="8,3,0,2" VerticalAlignment="Center" Width="120" Content="NCAA Formula" Foreground="White" FontSize="14" FontWeight="Bold"/>
        </Grid>
        <Grid Margin="184,340,48,182">
            <sdk:Label Height="28" Width="120" Margin="0,0,318,0" HorizontalAlignment="Right" Content="Completion %"/>
            <sdk:Label Height="28" Width="16" Margin="270,0,152,0" HorizontalAlignment="Center" Content="=" VerticalAlignment="Center"/>
            <TextBox x:Name="ctlCpNcaa" HorizontalAlignment="Left" Height="23" Margin="292,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" KeyDown="ctlCpNcaa_KeyDown" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center"/>
            <sdk:Label Height="28" Width="16" Margin="345,0,77,0" HorizontalAlignment="Center" Content="A" VerticalAlignment="Center"/>
        </Grid>
        <Grid Margin="184,366,48,156">
            <sdk:Label Height="28" Width="120" Margin="0,0,318,0" HorizontalAlignment="Right" Content="Yards / Attempt"/>
            <TextBox x:Name="ctlYaNcaa" HorizontalAlignment="Left" Height="23" Margin="137,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" KeyDown="ctlYaNcaa_KeyDown" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center"/>
            <sdk:Label Height="28" Width="82" Margin="188,0,168,0" HorizontalAlignment="Center" Content="* 8.4" VerticalAlignment="Center"/>
            <sdk:Label Height="28" Width="16" Margin="270,0,152,0" HorizontalAlignment="Center" Content="=" VerticalAlignment="Center"/>
            <TextBox x:Name="ctlYaActNcaa" HorizontalAlignment="Left" Height="23" Margin="292,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" KeyDown="ctlYaActNcaa_KeyDown" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center"/>
            <sdk:Label Height="28" Width="16" Margin="345,0,77,0" HorizontalAlignment="Center" Content="B" VerticalAlignment="Center"/>
        </Grid>
        <Grid Margin="184,392,48,130">
            <sdk:Label Height="28" Width="120" Margin="0,0,318,0" HorizontalAlignment="Right" Content="Touchdown %"/>
            <TextBox x:Name="ctlTpNcaa" HorizontalAlignment="Left" Height="23" Margin="137,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" KeyDown="ctlTpNcaa_KeyDown" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center"/>
            <sdk:Label Height="28" Width="82" Margin="188,0,168,0" HorizontalAlignment="Center" Content="* 3.3" VerticalAlignment="Center"/>
            <sdk:Label Height="28" Width="16" Margin="270,0,152,0" HorizontalAlignment="Center" Content="=" VerticalAlignment="Center"/>
            <TextBox x:Name="ctlTpActNcaa" HorizontalAlignment="Left" Height="23" Margin="292,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" KeyDown="ctlTpActNcaa_KeyDown" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center"/>
            <sdk:Label Height="28" Width="16" Margin="345,0,77,0" HorizontalAlignment="Center" Content="C" VerticalAlignment="Center"/>
        </Grid>
        <Grid Margin="184,418,48,104">
            <sdk:Label Height="28" Width="120" Margin="0,0,318,0" HorizontalAlignment="Right" Content="Interception %"/>
            <TextBox x:Name="ctlIpNcaa" HorizontalAlignment="Left" Height="23" Margin="137,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" KeyDown="ctlIpNcaa_KeyDown" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center"/>
            <sdk:Label Height="28" Width="82" Margin="188,0,168,0" HorizontalAlignment="Center" Content="* 2.0" VerticalAlignment="Center"/>
            <sdk:Label Height="28" Width="16" Margin="270,0,152,0" HorizontalAlignment="Center" Content="=" VerticalAlignment="Center"/>
            <TextBox x:Name="ctlIpActNcaa" HorizontalAlignment="Left" Height="23" Margin="292,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" KeyDown="ctlIpActNcaa_KeyDown" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center"/>
            <sdk:Label Height="28" Width="16" Margin="345,0,77,0" HorizontalAlignment="Center" Content="D" VerticalAlignment="Center"/>
        </Grid>
        <Grid Margin="184,463,24,36">
            <TextBox x:Name="ctlCpNcaaFinal" HorizontalAlignment="Left" Height="23" Margin="14,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" KeyDown="ctlCpNcaaFinal_KeyDown" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center"/>
            <sdk:Label Height="28" Width="10" Margin="66,0,386,23" HorizontalAlignment="Center" Content="+" VerticalAlignment="Center"/>
            <TextBox x:Name="ctlYaNcaaFinal" HorizontalAlignment="Left" Height="23" Margin="79,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" KeyDown="ctlYaNcaaFinal_KeyDown" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center"/>
            <sdk:Label Height="28" Width="10" Margin="131,0,321,23" HorizontalAlignment="Center" Content="+" VerticalAlignment="Center"/>
            <TextBox x:Name="ctlTpNcaaFinal" HorizontalAlignment="Left" Height="23" Margin="145,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" KeyDown="ctlTpNcaaFinal_KeyDown" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center"/>
            <sdk:Label Height="28" Width="10" Margin="197,0,255,23" HorizontalAlignment="Center" Content="-" VerticalAlignment="Center"/>
            <TextBox x:Name="ctlIpNcaaFinal" HorizontalAlignment="Left" Height="23" Margin="212,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" KeyDown="ctlIpNcaaFinal_KeyDown" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center"/>
            <sdk:Label Height="28" Width="19" Margin="268,0,175,23" HorizontalAlignment="Center" Content="=" VerticalAlignment="Center"/>
            <TextBox x:Name="ctlNcaaFinal" HorizontalAlignment="Left" Height="23" Margin="293,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="48" IsReadOnly="True" IsTabStop="False" IsHitTestVisible="False" TextAlignment="Center" FontWeight="Bold"/>
            <sdk:Label Height="28" Width="46" Margin="15,23,401,0" HorizontalAlignment="Center" Content="A" VerticalAlignment="Center"/>
            <sdk:Label Height="28" Width="45" Margin="81,23,336,0" HorizontalAlignment="Center" Content="B" VerticalAlignment="Center"/>
            <sdk:Label Height="28" Width="46" Margin="146,23,270,0" HorizontalAlignment="Center" Content="C" VerticalAlignment="Center"/>
            <sdk:Label Height="28" Width="48" Margin="212,23,202,0" HorizontalAlignment="Center" Content="D" VerticalAlignment="Center"/>
            <sdk:Label Height="28" Width="46" Margin="295,23,121,0" HorizontalAlignment="Center" Content="NCAA" VerticalAlignment="Center"/>
        </Grid>
        <Image HorizontalAlignment="Left" Height="50" Margin="100,9,0,0" VerticalAlignment="Top" Width="65" Source="Images/banner-icon-1.png"/>
        <sdk:Label HorizontalAlignment="Left" Height="37" Margin="178,15,0,498" VerticalAlignment="Center" Width="482" FontSize="22" Content="Silverlight QB Passer Rating" FontWeight="Bold" Foreground="#FF323232"/>
        <Button x:Name="btnReset" Content="Reset" HorizontalAlignment="Left" Margin="38,286,0,0" VerticalAlignment="Top" Width="47" Click="btnReset_Click"/>
        <Button x:Name="btnCalc" Content="Calculate" HorizontalAlignment="Left" Margin="90,286,0,0" VerticalAlignment="Top" Width="66" Click="btnCalc_Click"/>
        <TextBlock HorizontalAlignment="Left" Margin="38,530,0,0" TextWrapping="Wrap" Text="Version 1.2" VerticalAlignment="Top" Foreground="#FFB9B9B9"/>
        <HyperlinkButton Content="Jason Barkes - http://jbarkes.blogspot.com" HorizontalAlignment="Left" Margin="414,530,0,0" VerticalAlignment="Top" NavigateUri="http://jbarkes.blogspot.com"/>
    </Grid>
</UserControl>
